//
//  KICropView.h
//  搞起
//
//  Created by Alex on 14-12-9.
//  Copyright (c) 2014年 Alex. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "KICropImageView.h"

@class KICropView;
@protocol KICropViewDelegate
@optional

-(void)cropView:(KICropView*)view didClickSaveImage:(UIImage*)editImage ImageRect:(CGRect)frame;
-(void)cropViewDidClickCancel:(KICropView*)view;

@end

@interface KICropView : UIView
{
    CGSize rectSize;
}

@property KICropImageView* imageView;
@property (nonatomic,weak)id delegate;

-(id)initWithFrame:(CGRect)frame
          WithSize:(CGSize)size;

-(void)setImage:(UIImage*)image;

@end
